/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.appspot.trafficando.service.aggregator;

import com.appspot.trafficando.domain.EventAggregator;
import com.appspot.trafficando.domain.EventProvider;
import java.util.List;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 *
 * @author Domenico Maria Giffone
 */
public class SimpleEventAggregationService extends AbstractEventAggregator implements EventAggregator {

    private static final Logger LOG = LoggerFactory.getLogger(SimpleEventAggregationService.class);

    @Override
    public void setProviders(List<EventProvider> providers) {
        for (EventProvider eventProvider : providers) {
            addProvider(eventProvider);
        }
    }

    @Override
    protected Logger getLogger() {
        return LOG;
    }

}
